package cn.com.pkas.comm
{
	public class Const
	{
		public function Const()
		{
		}
		/**报文头位数**/
		public static const HEADERLENGTH : int = 10;
		/**报文长度位数**/
		public static const BODYLENGTH : int = 5;
		/**报文密文位数**/
		public static const BODYMD5 : int = 32;
		/**报文类型位数**/
		public static const BODYTYPE : int = 4;
		/**报文来源位数**/
		public static const BODYSOURCE : int = 3;
		/**报文前列总位数**/
		public static const TOTAL : int = 100;
		/**报文后列预留位数**/
		public static const BLANK : int = Const.TOTAL-Const.HEADERLENGTH-Const.BODYLENGTH-Const.BODYMD5-Const.BODYSOURCE-Const.BODYTYPE;
		
		/**补齐位字符**/
		public static const BLANKCHAR : String = "0";
		/**AS报文来源字符**/
		public static const ASSOURCECHAR : String = "AS3";
		/**AS json类型**/
		public static const JSONTYPE : String = "JSON";
		/**AS exml类型**/
		public static const EXMLTYPE : String = "EXML";
		
		/**返回code**/
		public static const HOSTRETCODE:String = "hostRetCode";
		/**返回信息**/
		public static const HOSTMESSAGE:String = "hostMessage";
		/**正确码**/
		public static const SUCCESSCODE:String = "0000";
		
		/**socket**/
		public static const HOSTNAME:String = "localhost";
		public static const HOSTPORT:int = 9201;
		
		/**大厅**/
		public static const GAME:String = "1";
		public static const ROOM:String = "2";
		public static const TABLE:String = "3";
		
		/**大厅的tab图标**/
		public static const HOMEICON:int = 1;
		
		
		/**座位是否有人**/
		//有人
		public static const SEATYES:int = 1;
		//没人
		public static const SEATNO:int = 2;
		
		/******shareobj 使用*******/
		public static const ROOMMAXD:String = "room_maxd";
		public static const ROOMMIND:String = "room_mind";
		public static const ROOMID:String = "roomid";
		public static const TABLEID:String = "tableid";
		public static const SEATID:String = "seatid";
		public static const INGAME:String = "ingame";
		public static const SEAT:String = "seat";
		public static const ROOMTIMER:String = "roomtimer";
		public static const INMONEY:String = "INMONEY";
		/******shareobj 使用*******/
		
		
		public static const INGAMEYES:int = 1;
		public static const INGAMENO:int = 2;
		
		
		/**大厅轮询时间**/
		public static const ROOM_TIMER:int = 1000 * 1;
		/**游戏轮询时间**/
		public static const GAME_TIMER:int = 1000 * 1;
		
	}
}